var express = require('express');
var router = express.Router();

const {
    getOrders,
    getOrderDetails,
    getAllRefound,
    changeToRefound,
    getOrdersBySalesmanId,
    deleteOneOrder
} = require('../controllers/orders');

router.get('/getAllOrders', getOrders);
router.get('/getOneOrderDetail', getOrderDetails);
router.get('/getRefoundOrders', getAllRefound);
router.post('/changeStateToRefound', changeToRefound);
router.get('/getOrdersBySalesman', getOrdersBySalesmanId);
router.post('/deleteOneOrder', deleteOneOrder);

module.exports = router;
